package cn.mujiankeji.mbrowser.界面.组件

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.windowInsetsBottomHeight
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier


/**
 * 包含底部键盘、虚拟键盘凸起等占位视图
 */
@Composable
fun 系统底部空间占位(){
    Spacer(
        Modifier.windowInsetsBottomHeight(WindowInsets.navigationBars)
        .background(MaterialTheme.colorScheme.surface).fillMaxWidth())
}

@Composable
fun 系统虚拟导航栏占位(){
    Spacer(
        Modifier.windowInsetsBottomHeight(WindowInsets.navigationBars)
            .background(MaterialTheme.colorScheme.surface)
            .fillMaxWidth()
    )
}